{% extends "learning_logs/base.html" %}

{% block content %}
    <p><a href="{% url 'ETP:product' product.id %}">{{ product }}</a></p>
    <p>Edit Product:</p>
    <form action="{% url 'ETP:edit_product' product.id %}" method="post">
        {% csrf_token %}
        {{ form.as_p }}
        <button name="submit">save changes</button>
    </form>
{% endblock content %}